package com.vrv.vap.baseline.service.impl;

import com.vrv.vap.baseline.config.ExcelTemplateConfig;
import com.vrv.vap.baseline.entity.AssetTypeTemplate;
import com.vrv.vap.baseline.mapper.AssetTypeTemplateMapper;
import com.vrv.vap.baseline.service.AbstractExcelExportService;
import com.vrv.vap.baseline.util.FileOperationUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.util.List;

@Service
public class AssetTypeTemplateExportService extends AbstractExcelExportService<AssetTypeTemplate> {
    @Autowired
    private AssetTypeTemplateMapper assetTypeTemplateMapper;

    protected AssetTypeTemplateExportService(FileOperationUtil fileOperationUtil, ExcelTemplateConfig excelTemplateConfig) {
        super(fileOperationUtil, excelTemplateConfig, "asset_type_template");
    }

    @Override
    protected List<AssetTypeTemplate> getAllData() {
        return assetTypeTemplateMapper.selectAll();
    }

    @Override
    protected void processData(List<AssetTypeTemplate> dataList, String format) throws IOException {

    }

    @Override
    protected Class<AssetTypeTemplate> getEntityClass() {
        return AssetTypeTemplate.class;
    }
}